<%--
  Created by IntelliJ IDEA.
  User: 78168
  Date: 2021/5/3
  Time: 16:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>$Title$</title>
</head>
<body>
<table border="1px" align="center" cellpadding="0px" cellspacing="0px">
    <tr>
        <td>ID</td>
        <td>NAME</td>
        <td>AGE</td>
        <td>BIRTHDAY</td>
    </tr>

    <c:forEach items="${stus}" var="stu">
        <tr>
            <td> ${stu.sid}</td>
            <td>${stu.name}</td>
            <td>${stu.age}</td>
            <td>${stu.birthday}</td>

            <td><a href="/deleteServlet?id=${stu.sid}">删除</a></td>
        </tr>
    </c:forEach>
</table>

<h3><a href="/add.jsp">添加学生</a></h3>

</body>
</html>
